const app = getApp()
Page({
  data: {
    motto: 'Hello World',
  },
  // 事件处理函数
  bindViewTap() {
    wx.navigateTo({
      url: '/pages/logs/logs'
    })
  },
  testTap(){
    if(this.data.motto=='Hello World'){
      this.setData({motto:'点击了按钮一下'});
    }else{
      this.setData({motto:'Hello World'});
    }
  },
  toImage(){
    wx.navigateTo({
      url: '/pages/images/images',
    })
  },
  toForms(){
    wx.navigateTo({
      url: '/pages/forms/forms',
    })
  },
  toTabs(){
    wx.navigateTo({
      url: '/pages/tabs/tabs',
    })
  },
  toBase:function(){
    wx.navigateTo({
      url: '/pages/base/base',
    })
  },
  toGetUser:function(){
    wx.navigateTo({
      url: '/pages/getUser/getUser',
    })
  }
})
